<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>table</title>
<link href="../../css/layer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../../js/jquery-ui-1.8.21.custom.min.js"></script>
</head>

<body>
	<div class="table_list">
		<table class="table1" width="100%" cellpadding="0" cellspacing="0">
			<tr class="tr_bt">
				<td class="td2" width="60%">研究实验基地名称</td>
				<td class="td2">所属单位</td>
			</tr>
			<c:forEach var="tableInfo" items="${tableInfoList}" begin="${beginnum}"
				end="${endnum}">
				<tr class="tr_1">
					<td class="td2">
<%-- 						<a href="syjdtable2.ins?id=${tableInfo[2]}">${tableInfo[0]}</a> --%>
						<a href="/relation/syjd.ins?id=${tableInfo[2]}" target="_blank">${tableInfo[0]}</a>
					</td>
					<td class="td8" style="border-right: none;">
<%-- 						<a href="/institution/dwtable2.ins?id=${tableInfo[3]}">${tableInfo[1]}</a> --%>
						<a href="/relation/dw.ins?id=${tableInfo[3]}" target="_blank">${tableInfo[1]}</a>
					</td>
				</tr>
			</c:forEach>
		</table>
		<table class="table1" width="100%" cellpadding="0" cellspacing="0">
			<tr class="tr_1">
				<td class="td2">
					<a href="syjdtable1.ins?zhibiao=${zhibiao}&zhibiaomc=${zhibiaomc}&quyu=${quyu}&loctype=${loctype}&page=${lastpage}">上一页</a>
				</td>
				<td class="td2"></td>
				<td class="td2">当前第${curpage}页&nbsp;&nbsp;共${totalpage}页${total}台&nbsp;&nbsp;跳到第
					<select id="selectPage" style="width: 40px" onchange="changePage();">
						<script>
						var totalPage = ${totalpage};
						var page = ${curpage};
							for (var i=1;i<=totalPage;i++){
								if (i == page)
									document.write("<option value='"+i+"' selected='true'>"+i+"</option>");
								else
									document.write("<option value='"+i+"'>"+i+"</option>");
							}
							function changePage(){
								var page = $("#selectPage").val();
								var url = "syjdtable1.ins?zhibiao=${zhibiao}&zhibiaomc=${zhibiaomc}&quyu=${quyu}&loctype=${loctype}&page=";
								window.location.href = url + page;
							}
						</script>
				</select> 页
				</td>
				<td class="td2"></td>
				<td class="td8" style="border-right: none;">
					<a href="syjdtable1.ins?zhibiao=${zhibiao}&zhibiaomc=${zhibiaomc}&quyu=${quyu}&loctype=${loctype}&page=${nextpage}">下一页</a>
				</td>
			</tr>
		</table>
	</div>
	<script>
		window.parent.$("#fanhui").show();
	</script>
</body>
</html>
